package com.ypd.show.domain;

import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;

import com.ypd.common.annotation.Excel;
import com.ypd.common.core.domain.BaseEntity;

/**
 * 文章操作对象 tb_article
 * 
 * @author ye
 * @date 2025-01-02
 */
@Data
@NoArgsConstructor
@AllArgsConstructor
@Builder
public class Article extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** $column.columnComment */
    private Long id;

    /** 文章标题 */
    @Excel(name = "文章标题")
    private String title;

    /** 文章具体内容 */
    @Excel(name = "文章具体内容")
    private String content;

    /** 发表时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "发表时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date created;

    /** 修改时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "修改时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date modified;

    /** 文章分类 */
    @Excel(name = "文章分类")
    private Long categories;

    /** 文章标签 */
    @Excel(name = "文章标签")
    private String tags;

    /** 是否允许评论 */
    @Excel(name = "是否允许评论")
    private Integer allowComment;

    /** 文章缩略图 */
    @Excel(name = "文章缩略图")
    private String thumbnail;

    /**
     * 用户id
     */
    @Excel(name = "userID")
    private Long userId;


}
